<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">

<head>
    <title th:text="${pageTitle}"></title>
    <div data-th-replace="layout/head-top"></div>
</head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInLeft">
    <div data-th-replace="common/functionDepict"></div>
    <div>
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <div class="row">
                    <div class="col-sm-5">
                        <h5>
                            <a href=""><span><button class="btn btn-white" data-toggle="tooltip" data-placement="top" title="" data-original-title="刷新活动列表"><i class="fa fa-refresh"></i> 刷新</button></span></a>
                             <small id="totalNum">（共0个活动）</small>
                        </h5>
                        <input id="activityCount" type="hidden" value=""/><!--${count}-->
                    </div>
                    <div class="col-sm-3">
                        <form id="search-form" role="form" class="search-form">
                            <div class="input-group opSearchBox">
                                <input placeholder="请输入活动标题"  value=""  name="activityName" class="input-sm form-control vam common-search-word" type="text">
                                <span class="input-group-btn"><button type="button" class="btn btn-sm btn-primary vam" id="btn1">搜索</button> </span>
                            </div>
                        </form>
                    </div>
                    <div class="col-sm-2 text-center">
                        <a href="javascript:void(0)" id="advSearchshowBtn" class="pt10 inlineBlock vam">高级搜索操作 <i class="fa fa-angle-double-down"></i></a>
                    </div>
                    <div class="col-sm-2 text-center">
                        <a th:href="@{/admin/op/activity/toSaveUpdateOpActivityPage}"><button type="button"  class="btn btn-block btn-danger"> <i class="fa fa-plus-circle"></i> 新建活动</button></a>
                    </div>
                </div>
            </div>
            <div class="oc-advSearch-box">
                <div class="row">
                    <div class="col-sm-2">
                        <div class="pt10">
                            <div class="checkbox i-checks">
                                <label style="padding-left: 0"><input id="select-all-activity" type="checkbox"/> <i></i> 全选</label>
                                <button type="button" id="unlockBatch"  class="btn btn-xs btn-primary ml5" data-toggle="tooltip" data-placement="bottom" data-original-title="批量冻结"><i class="fa fa-unlock-alt"></i></button>
                                <button type="button" id="historyBatch" class="btn btn-xs btn-primary ml5" data-toggle="tooltip" data-placement="bottom" data-original-title="批量恢复"><i class="fa fa-history"></i></button>
                                <button type="button" id="deleteBatch" class="btn btn-xs btn-primary ml5" data-toggle="tooltip" data-placement="bottom" data-original-title="批量删除"><i class="fa fa-trash"></i></button>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-10">
                        <div class="pt10">
                            <form  role="form" class="form-inline search-form">
                                <div class="form-group form-box" style="margin-bottom: 10px">
                                    <input placeholder="请输入活动标题"  value=""  class="form-control common-search-word" type="text">
                                </div>
                                <select class="form-control mb10" name="status">
                                    <option value="">活动状态</option>
                                    <option  value="1">正常</option>
                                    <option  value="2">冻结</option>
                                </select>
                                <select class="form-control mb10" name="activityType">
                                    <option value="">活动类型</option>
                                    <option  value="1">满减</option>
                                    <option  value="2">满赠</option>
                                </select>
                                <div class="form-group" style="margin-bottom: 10px">
                                    <input placeholder="活动创建开始时间" name="beginTime" value="" id="startDate" readonly class="laydate-icon form-control layer-date" type="text" onclick="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})">
                                </div>
                                <button class="btn btn-w-m btn-primary" id="btn2" type="button" style="margin-bottom: 10px">搜索</button>
                            </form>
                        </div>
                    </div>
                </div>
            </div>
            <div class="oc-ibox-content" id="activity-list-context"></div>
        </div>
    </div>
</div>
<div data-th-replace="layout/head-footer"></div>
<script type="text/javascript" th:src="@{{path}/admin/business/op/activity/activity_list.js?v={v}(path=${staticPath},v=${v})}"> </script>
<script type="text/javascript" th:src="@{{path}/admin/libs/plugins/layer/laydate/laydate.js?v={v}(path=${staticPath},v=${v})}"></script>
</body>
</html>